package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Importsalaryitem entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "importsalaryitem", catalog = "imcdbserver")
public class Importsalaryitem implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer corpId;
	private String type;
	private String name;
	private String isvalid;
	private String note;
	private short itemsort;
	private String yearmonth;

	// Constructors

	/** default constructor */
	public Importsalaryitem() {
	}

	/** full constructor */
	public Importsalaryitem(Integer corpId, String type, String name,
			String isvalid, String note, short itemsort, String yearmonth) {
		this.corpId = corpId;
		this.type = type;
		this.name = name;
		this.isvalid = isvalid;
		this.note = note;
		this.itemsort = itemsort;
		this.yearmonth = yearmonth;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "Id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "corp_id")
	public Integer getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

	@Column(name = "type", length = 20)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "name", length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "isvalid", length = 1)
	public String getIsvalid() {
		return this.isvalid;
	}

	public void setIsvalid(String isvalid) {
		this.isvalid = isvalid;
	}

	@Column(name = "note", length = 20)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Column(name = "itemsort")
	public short getItemsort() {
		return this.itemsort;
	}

	public void setItemsort(short itemsort) {
		this.itemsort = itemsort;
	}

	@Column(name = "yearmonth", length = 6)
	public String getYearmonth() {
		return this.yearmonth;
	}

	public void setYearmonth(String yearmonth) {
		this.yearmonth = yearmonth;
	}

}